package com.bangcommunity.bbframe.common.base;

import java.io.Serializable;

/**
 * @author tanghc
 */
public abstract class AbstractDTOConvert<S extends Serializable, T extends Serializable> implements DTOConvert<S, T> {

    private static final long serialVersionUID = -2988221757357919195L;

    public abstract T doForward(S bean);

    public abstract S doBackward(T bean);

    @Override
    public T forward(S bean) {
        return doForward(bean);
    }

    @Override
    public S backward(T bean) {
        return doBackward(bean);
    }
}
